﻿using Autofac;
using System.Reflection;
using Module = Autofac.Module;

namespace Statement.Share
{
    public class Class1
    {

        public class StatementShare : Module
        {
            protected override void Load(ContainerBuilder builder)
            {
                builder.RegisterAssemblyTypes(
                       Assembly.Load("Statement.Service"),
                        Assembly.Load("Statement.Contracts")

                   )
               .Where(a => a.Name.EndsWith("Service")).AsImplementedInterfaces();
            }
        }

          

    }
}
